/**
 * 咨询模型
 */

import {
  Entity,
  Column,
  CreateDateColumn,
  UpdateDateColumn,
  PrimaryColumn
} from "typeorm";

@Entity("BBL_FEED")
export class BblFeed {
  @PrimaryColumn({
    name: "FEED_ID",
    type: "varchar",
    length: 50,
    comment: "咨询ID"
  })
  feedId: string;

  @Column({
    name: "REAL_NAME",
    type: "varchar",
    length: 100,
    comment: "姓名",
    nullable: true
  })
  realName: string;

  @Column({
    name: "PHONE_NUMBER",
    type: "varchar",
    length: 100,
    comment: "联系号码",
    nullable: true
  })
  phone: string;

  @Column({
    name: "FEED_CONTENT",
    type: "text",
    comment: "咨询内容",
    nullable: true
  })
  content: string;

  @Column({
    name: "FEED_FROM",
    type: "varchar",
    length: 255,
    comment: "省份地市",
    nullable: true
  })
  addr: string;

  /**
   * 咨询状态，0：未处理，1：已处理
   */
  @Column({
    name: "FEED_STATE",
    type: "int",
    comment: "咨询状态，0：未处理，1：已处理",
    nullable: true
  })
  state: number;

  @Column({
    name: "FEED_RESOLVE_SCHEMA",
    type: "text",
    comment: "咨询处理方案",
    nullable: true
  })
  resolveSchema: string;

  @CreateDateColumn({
    type: "timestamp",
    name: "CREATE_AT",
    comment: "创建时间",
    nullable: true
  })
  createAt: Date;

  @UpdateDateColumn({
    type: "timestamp",
    name: "UPDATE_AT",
    comment: "更新时间",
    nullable: true
  })
  updateAt: Date;
}
